From: Automeris naranja Date: Thu, 2 Mar 2023 21:50:36 +0000 (-0300) Subject: screenshot: Add tooltip to the "Capture" button X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~393^2^2~43 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bac403c4090e2f2db54f49d07d7023446fc22b88;p=gnome-shell.git screenshot: Add tooltip to the "Capture" button Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5448 Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index bf54eb069..48ca1ae76 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -1254,6 +1254,13 @@ var ScreenshotUI = GObject.registerClass({ this._captureButton.set_child(new St.Widget({ style_class: 'screenshot-ui-capture-button-circle', })); + this.add_child(new Tooltip(this._captureButton, { + /* Translators: since this string refers to an action, + it needs to be phrased as a verb. */ + text: _('Capture'), + style_class: 'screenshot-ui-tooltip', + visible: false, + })); this._captureButton.connect('clicked', this._onCaptureButtonClicked.bind(this)); this._bottomRowContainer.add_child(this._captureButton);